how to enable rdp with powershell¶
in cmd:
runas /env /user:[email protected] powershellin powershell:
(Get-WmiObject -class Win32_TerminalServiceSetting -namespace "root\cimv2\terminalservices").SetAllowTSConnections(1,1) #Get-NetFirewallRule -Name RemoteDesktop* | Set-NetFirewallRule -Enabled true